Fixes #6225 and #5600: Allows update event to alter attributes and checks canEdit() on DB copy