Keep duplicates, select distinct on using data instead

To prevent inserting/ deleting same exception on every update
Merge branch 'pre_change_scene_exceptions_update_dev' into test-has_index-se_update-pp_rules-catID