Indexeddb test and minor attachs changes