Adding support to \MongoClient instead of deprecated \Mongo
Better object oriented design