Replacing the deprecated Mongo class with MongoClient instead.

The Mongo class is deprecated and it is advised to use MongoClient instead, and so it has been replaced with MongoClient.