toIncrement: true });
        store.createIndex("name","name", {unique:false});
      }
    }

    openRequest.onsuccess = function (e) {
      console.log("running onsuccess");
      db = e.target.result;

      //Listen for add clicks
      document.querySelector("#addButton").addEventListener("click", addPerson, false);
      document.querySelector("#getButton").addEventListener("click", getPeople, false);
    }

    openRequest.onerror = function (e) {
      //Do something for the error
    }

  }, fals