good sqlalchemy database model refactoring