factor out `insert_cell_measure` logic into separate function
use `on_duplicate` trick to update scores

removes the insert vs. update vs. concurrency code and assorted bugs
call `process_cell_measure` function directly while re-processing data
change `schedule_cell_cleanup` to split work into batches