replace pymongo.connection with pymongo.mongoclient