use MongoClient over the deprecated Connection
support for mongodb replica sets