pgsql insert (start transaction)