Added IndexedDB compability