developmental code with a indexeddb for settings storage