inserts into pgsql now working