Fall back to localStorage if the browser does not support IndexedDB.