Conectar a um banco de dados existente
import pymongo
from pymongo import MongoClient
connection = MongoClient()
db = connection.mydatabase
Lista de bancos de dados existentes
import pymongo
from pymongo import MongoClient
connection = MongoClient()
# connection.database_names() # depreciated
connection.list_database_names()