Replaced MongoDB Connection with MongoClient