Added IndexedDB option for offline storage