utils for working with IndexedDB