title: Jquery (Mobile) and phonegap storage module not synchronized
body: <p>I', new to the phonegap api and have som problems with the storage part together with loops. The loop will finish before fist call to executeSql.</p>
  
  <p>Psudo Example:</p>
  
  <p>list = [1,2,3]; 
  // For this example id 1 has 3 tags, id 2 has 6 tags and id 3 has 9 tags.</p>
  
  <p>$.each(list, function(index,value){
      alert(value);
      tx.executeSql('SELECT tag_name FROM Tag WHERE parent = '+value,[], function(tx, results){
           alert(results.rows.length);
      }, sqlError);
  });</p>
  
  <p>Desired result: 1,3,2,6,3,9
  Result: 1,2,3,9,9,9</p>
  
  <p>So the javascript is finished before tx is executed and the query will always be "SELECT tag_name FROM Tag WHERE parent = 3</p>