Refactor ChangedTable
Add clause properties to ChangedTable and refactor