addon-code for storing and retrieving data from indexed-db