added undo on sql execute exceptions