working on orm with sqlalchemy.