Use of Flask-SQLAlchemy models