title: How do you create a second store in indexeddb?
body: <p>So here's my first method.
  I created one store and I created an index "groupname" the value is the whole object which has multiple keys and values. This works but when I try to add another store, the store shows up and the index shows up but the values are empty...</p>
  
  <p>Anyone have any tips for me on how to create a second storeobject?</p>
  
  <pre><code>var dbName = "DSD DB";
  var request = window.indexedDB.open(dbName, 2);
  var db;
  
  request.onerror = function(event) {
      console.log(event.target.errorCode);
  };
  
  request.onsuccess = function(event) {
      db = event.target.result;
      console.log(db);
  };
  
  // This event is only implemented in recent browsers   
  request.onupgradeneeded = function(event) {
      // Save the IDBDatabase interface 
      var db = event.target.result;
  
      // Create an objectStore for this database
      var objectStore = db.createObjectStore("groups", { keyPath: "groupname" });
  
      objectStore.transaction.oncomplete = function(event) {
          // Store values in the newly created objectStore.
          var groupObjectStore = db.transaction("groups", "readwrite").objectStore("groups");
          jsonReceivingOneGroup.groups.forEach(function(group) {
              groupObjectStore.add(group);
          });
          console.log(groupObjectStore);
      };
  };
  </code></pre>
  
  <p>Thanks in advance!</p>