Adds rollback to allow for query retry.