Second Commit sql to pq