Hubungkan ke database yang ada
import pymongo
from pymongo import MongoClient
connection = MongoClient()
db = connection.mydatabase
Mencantumkan database yang ada
import pymongo
from pymongo import MongoClient
connection = MongoClient()
# connection.database_names() # depreciated
connection.list_database_names()