update table comparing