baseline with sqlalchemy ... need to refactor