simplify indexeddb adapter