sql and pg for prod