Flask-sqlalchemy - Related information