def switch_db(name):
with app.app_context():<EOL><INDENT>app.extensions['<STR_LIT>'][mongo.config_prefix] = mongo.cx, mongo.cx[name]<EOL><DEDENT>
Hack to switch Flask-Pymongo db
    :param name: db name