public static string GetNextDatabaseName(Server srv, System.Configuration.Configuration config) {
string LastDatabase = config.AppSettings.Settings["LastDatabase"].Value;
string excludedDatabases = config.AppSettings.Settings["ExcludedDatabases"].Value;
List<string> e = excludedDatabases.Split( ';' ).ToList( );
List<string> l = srv.Databases.Cast<Database>( ).Select( d => d.Name ).Except( e ).ToList( );
//now save the list of databases in semicolon delimited format so we can check them later visually to know what ones we are using