add categoried in indexedDB