redid the postgre fix
pg fix
more pg fixes