modified logic of saving in idb: added states and filter for 'getAll' method. added fullSync method
added short example