Changd from dynamic lazy loading to non lazy loading on the FKs and many problems went away.
converting to PostgreSQL from SQLite.
Added config file for DB poroduction settigns (and promptly ignored it on git, so you will need to make it on each server.)
Changed thte models (enums specifically) to reflect the psql specific settings.