Storing data with IndexedDB for service workers and PWAs

PWA’s will need persistent storage sometimes but it is damn painful to do without studying indexedDB — so I did it for you

The key challenge — Async interactions