Resolve "Fix compilation of CTA with PGSCHED after recent code changes"
Summary
After recent bug fixes and changes in base code, PostgresSchedDB code needed to be aligned to compile.
Requires manual tests in pre-production
NO
References
Closes #498 (closed)