update indexedDB loader implementation