indexeddb sample