$.indexeddb(db).objectStore(objectStore).add(book).then(wrap, err);