$.indexeddb(db).objectStore(objectStore).openCursor().each(write);