changes for pg db