title: Duplicate Entries in SQLite
body: <p>I am fetching and storing phone numbers and contact names in a SQLite DB from an Android phone. Now my problem is that whenever I refresh/reload the app the SQL entries (phone and contacts) are inserted again and again giving rise to duplicate entries. How to stop this, I am using Phonegap, by the way!</p>
  
  <p>I am using this simple code to populate the DB </p>
  
  <pre><code>tx.executeSql('CREATE TABLE IF NOT EXISTS details (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, phone TEXT)');
  </code></pre>
  
  <p>But it is causing double entries.</p>