main table distinct updates