using indexedDB along with sync.storage