Wrapped update in a transaction