Reverting the Effects of XQuery Update Expressions