title: How to open existing database in websql
body: <p>I want to connect to <em>sqlite</em> existing database in <code>Javascript</code> via <code>WebSql</code>.
  I follow <a href="https://stackoverflow.com/questions/10626918/how-to-open-an-existing-websql-database">this question</a> and my problem not resolved.</p>
  
  <p>I did following : </p>
  
  <ol>
  <li>copy my sqlite database beside of the <code>"index.html"</code></li>
  <li><p>in the <code>"index.html"</code>, I add below code :</p>
  
  <pre><code>db = openDatabase('filename.sqlite', '', 'my first database', 2 * 1024 * 1024);
  </code></pre></li>
  </ol>
  
  <p>When I open <code>"index.html"</code>, on chrome developer tools and "Resources" tab, an <strong>empty</strong> database created with a <code>"filename.sqlite"</code> name. In fact, a new database created!</p>
  
  <p>Any suggestion?</p>