transform mess created while playing around into documentation of how to do things with IndexedDB