IndexedDB select working, fixing on update