Properly quote identifiers when using Postgres.
Create a transaction savepoint and and rollback to it if executeUpdate fails.

This is primarily for Postgres which will invalidate a transaction
if any statements fail unless it gets rolled back.