Unable to connect to all databases