db changes for pg