Further implementation of IndexedDB