Replace pymongo with motor