moves pg to postgres script