Add generic postgres query helpers
Change logic to courses handler
Change model structure, and logic for sql models
Some cleanups, not so many recursive selfs
Call the right functions... aka ones that exist
pg lib cleanups
Some stupid cleanups
Change variable parms to make it be clear-er
Working pass through function