pgInsert function

Inserts data into a PostgreSQL table.