added eslint, updated indexedDB to something a bit more concise