def drop_db(): with app.app_context(): db.drop_all()
def init_db(): with app.app_context(): db.create_all()