Mongo class to MongoClient class