code dropping on no indexeddb