now removes safely the app.db