Updated connection to use MongoClient (#262, #274)