modifs and sqlalchemy