Updated to use MongoClient instead of Mongo but still allowing to use Mongo in case of older version of php Mongo extension