change generated UPDATE statement so it does not SET columns that were not in state map

@labisso @timf @turtlebender 
this change will have some but limited effect due to FB5880 (improved UPDATE in 42% of locations in code, unchanged in remaining 58%)