Improvement of the IndexedDB issues

Due to asynchronous mode