Fix async wrapper around IndexedDB