working on database modeling, trying to figure out proper sqlalchemy database queries