retrieving data from indexedDB and angular is active