Added IndexedDB and pagination