Fixed databases being queried without a username or password and ignored the default databases when checking for shards.