bNames.length === 0) {
      addInfo('No databases found.');
      return;
    } else {
      addInfo('Databases: ' + dbNames);
      for (let dbName of dbNames) {
        await singleDbDownload(dbName);
      }
    }
  };

  async function singleDbDownload(dbName) {
    let db = new Dexie(dbName);
    addInfo('Dexie loaded.');

    const { verno, tables } = await db.open();
    db.close();

    db = new Dexie(dbName);
    db.version(verno).stores(tables.reduce((p,c) => {
      p[c.name] = c.schema.primKey.