finish backup and restore preference
restart application when successfully restore database