a working repo model using sqlalchemy