title: phonegap passing argument to storage api calls
body: <p>According to the documentation you can create a database and populate it with:</p>
  
  <pre><code> // PhoneGap is ready
  //
  function onDeviceReady() {
      db = window.openDatabase("Database", "1.0", "PhoneGap Demo", 200000);
      db.transaction(populateDB, errorCB, successCB);
      //accessToken=new Table('Token','id unique, tokenType, tokenValue');
      ///createTable(accessToken);
  }
  
  
   // Populate the database
  
  function populateDB(tx) {
       tx.executeSql('DROP TABLE IF EXISTS DEMO');
       tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
       tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
       tx.executeSql(
              'INSERT INTO '+tname+' (id,data) VALUES (?, ?);',
              [id,data],
              function (transaction, resultSet) {
               //success code
               alert('sucessful insertion');
               },
               errorCB
          );
  }
  
  // Transaction error callback
  //
  function errorCB(err) {
      alert("Error processing SQL: "+err);
  }
  
  // Transaction success callback
  //
  function successCB() {
      alert("success!");
  }
  </code></pre>
  
  <p>However, is it possible for me to pass an argument to the populateDB callback in the line db.transaction(populateDB, errorCB, successCB); ? If so how would I then access the value of that argument? Please provide an example. Any help would be appreciated with this. </p>