Add the conversion to using postgres db
This stuff all got created at run-time, I think