Replace deprecated Mongo class with MongoClient