public void CheckAndUpdate()
        {
            CheckDbExists();

            currentDbVersion = Converter.ToVersion(dbService.SettingsGetValue(SettingsType.DBVersion));

            if (appVersion > currentDbVersion)
            {
                var confirm = messageBoxService.AskWarningQuestion(Resources.Resources.VersionsMismatchWarningQuestionText,
                                                                   currentDbVersion.ToString(),
                                                                   appVersion.ToString());
                if (confirm)
                {
                    DoMigrations();
                }
                else
                {
                    messageBoxService.ShowError(Resources.Resources.VersionsMismatchErrorText,
                                                appVersion.ToString(),
                                                currentDbVersion.ToString());
                    throw new Exception("DB version and App version is different");
                }
            }
            else if (appVersion < currentDbVersion)
            {
                messageBoxService.ShowError(Resources.Resources.VersionsMismatchDbVersionGreaterErrorText,
                                            currentDbVersion.ToString(),
                                            appVersion.ToString());
                throw new Exception("DB version is greater than App version. This is impossible =)");
            }
        }