Abstraction over IndexedDB