;
    const store = transaction.objectStore("people");
    const index = store.index("name");

    //Make the range depending on what type we are doing
    let range;
    if (name != "" && endname != "") {
      range = IDBKeyRange.bound(name, endname);
    } else if (name == "") {
      range = IDBKeyRange.upperBound(endname);
    } else {
      range = IDBKeyRange.lowerBound(name);
    }

    let s = "";

    index.openCursor(range).onsuccess = function (e) {
      const cursor = e.target.result;
      if