sets up pg for production