public void DoMigrations()
        {
            //if (String.IsNullOrEmpty(_config.SqlConnectionString.ProviderName) ||
            //    !_config.SqlConnectionString.ProviderName.Equals(SqlClient, StringComparison.OrdinalIgnoreCase))
            //{
            //    return;
            //}
            var settingsManager = new DataSettingsManager();

            try
            {
                //save settings
                //  var   connectionString = "mongodb://" + userNameandPassword + model.MongoDBServerName + "/" + model.MongoDBDatabaseName;
                var settings = new DataSettings
                {
                    DataProvider         = "mongodb",
                    DataConnectionString = " mongodb://localhost:27017/chatdb"
                };
                settingsManager.SaveSettings(settings);

                var dataProviderInstance = new MongoDBDataProviderManager(settingsManager.LoadSettings()).LoadDataProvider();
                dataProviderInstance.InitDatabase();
                //now resolve installation service
                var mongoDBDataProviderManager = new MongoDBDataProviderManager(settingsManager.LoadSettings());
                var dataProviderInstall        = mongoDBDataProviderManager.LoadDataProvider();
                CreateIndexes();
                InstallVersion();
            }
            catch (Exception exception)
            {
            }
        }