Use sqlalchemy the flask way