works with Connection
migrate from Connection to MongoClient