klomp-update: sort contiguous INSERT statements in db dump for history