rrRowsSpan.innerText = completedRows;
    totalRowsSpan.innerText = totalRows;
    progressBar.setAttribute('max', totalRows);
    progressBar.setAttribute('value', completedRows);
  }

  const queryString = window.location.search;
  const searchParams = new URLSearchParams(queryString);
  const keyPrefix = searchParams.get('keyPrefix');

  async function downloadDb () {
    const dbs = await indexedDB.databases();
    const dbNames = dbs.map(x => { if (x.hasOwnProperty('name')) return x.name; });
    if (d