title: Sqlite: check if database exist
body: <p>I am developing a mobile application using phonegap that store some data into the local database (sqlite DB).
  I need to know if the database exist or not, and that to determine which process need to execute.</p>
  
  <pre><code>var database = window.openDatabase("my_db", "1.0", "sample DB", 30000);
  if (check_db_exist()) {
      process_1();
  }
  else
  {
      process_2();
  }
  </code></pre>