Refactor for sqlalchemy