Moved model definitions into models.py
Conversions of a bunch of tables to DeclarativeBase