Made some adjustments, but need to figure out how to work
with the pgsql connection first.