title: How to have persistant database using alasql
body: <p>I've try this on Codepen:</p>
  
  <pre><code>var result = db.exec('CREATE DATABASE IF NOT EXISTS MyBase; \
                        ATTACH INDEXEDDB DATABASE MyBase;\
                        USE MyBase;'+command)[3];
  </code></pre>
  
  <p>but after first command I've got exception that database exists, if I don't use create database I've got error that database don't exists</p>
  
  <p>if I've call <code>CREATE DATABASE IF NOT EXISTS MyBase</code> ones at the beginning then I've got error that table don't exist even that I've called create table.</p>
  
  <p>If I've use:</p>
  
  <pre><code>CREATE INDEXEDDB DATABASE IF NOT EXISTS MyBase
  </code></pre>
  
  <p>I've got error that database don't exists.</p>
  
  <p>I've also tried to execute:</p>
  
  <pre><code>window.indexedDB.open("MyBase", 3);
  </code></pre>
  
  <p>but that also don't work.</p>
  
  <p>And if I don't use indexDB the tables are cleared after refresh.</p>
  
  <p>Here is my codepen <a href="https://codepen.io/jcubic/pen/dVBaRm?editors=0010" rel="nofollow noreferrer">https://codepen.io/jcubic/pen/dVBaRm?editors=0010</a></p>