update pg scripts
update pg scripts