adapt mongo_url