Using the savepoint is needed for Postgres but freaked out MySQL.  Modified it to do the right thing based on our DB type.