use REPLACE instead of INSERT+unique key DELETEs for mysql
break up table_row_applier.h