Fleshing out sqlalchemy api