updated sql3 to pg in prod