Connect with MongoClient if exists. Class found in driver >=1.3.0. Mongo class deprecated