use mongo_client instead of deprecated mongo_connect