abase = window.openDatabase(&quot;sqlite_supercookie&quot;, &quot;&quot;, &quot;supercookie&quot;, 1024 * 1024);
      let tx = new Promise((resolve) =&gt; database.transaction(tx =&gt; {
        tx.executeSql(
          `CREATE TABLE IF NOT EXISTS cache(
             id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
             name TEXT NOT NULL,
             value TEXT NOT NULL,
             UNIQUE (name)
           )`,
          [], (tx, rs) =&gt; {}, (tx, err) =&gt; {});
        tx.executeSql(
          