add support for IndexedDB