migration to flask-sqlalchemy (VII)