nst request = store.add(person);

    request.onerror = function (e) {
      console.log("Error", e.target.error.name);
      //some type of error handler
    }

    request.onsuccess = function (e) {
      console.log("Add Success");
    }
  }


  function getPeople(e) {
    const name = document.querySelector("#nameSearch").value;
    const endname = document.querySelector("#nameSearchEnd").value;

    if (name == "" && endname == "") return;

    const transaction = db.transaction(["people"], "readonly")