Fix usage of MongoClient