Old SQL script was causing rollback errors on db