title: localStorageDB not persisting data between javascript files
body: <p>I have 2 javascript files.
  1 of those files functions looks like this.</p>
  
  <pre><code>        var database = new localStorageDB("FormsDatabase", localStorage);
          this.Create = function (item) {
              database.insertOrUpdate("Value", { Id: item.Id }, item);
              database.commit();
          };
  </code></pre>
  
  <p>The other looks like this.</p>
  
  <pre><code>        var database = new localStorageDB("FormsDatabase", localStorage);
          this.SynchronizeValue = function () {
              var items = database.queryAll("Value", { query: function (row) { 
                   if (row.IsSent == false &amp;&amp; row.IsDeleted == false) 
                   { return true; } else { return false; } }, limit: 100 });
          };
  </code></pre>
  
  <p>Why is it that the first file i can do a query right after doing an insertOrUpdate and a commit and i can get a return but in the second file the "Value" tables contents have dissapeared?</p>