pg back script