Add support for the new MongoClient

Connection is deprecated since pymongo 2.4