Add code to write to change_tag_def table