Loading of indexedDB properly.