Working rebuilding of database and updating of settings. Settings
retained for the next time the application is opened! :)