indexDb data deleting on electron autoupdate

we have encountered a strange issue in our app. For some of our users the app data files were deleted when the electron app updated to a new version using autoupdater in electron.

We are not maintaining the index Db in our application root folder. But we do not know why this issue was occurred . please provide a solution to this as the users data is important for the application.

Note : path of the app is “C:\Users<User name>\AppData\Local<Application name>”
path of the indexdb and other local storage files is “C:\Users<User name\AppData\Roaming<Application Name>\IndexedDB”