const handleEntity = async (db: Db, entity: Entity | null, batchsize: number) => {
  if (!entity) return;
  const { newEntity, repaired } = modifySelectValues(entity);
  if (repaired) {
    entitiesToUpdate.push(newEntity);