added good handling for no indexeddb support (sadly there is no adequate polyfill for this)