Use of Flask-SQLAlchemy models (II)