now we create an array with indexeddb tree