Converted tables to Django models and fixed the models to allow for
better assimlation with the ORM.