Problem solved,
I managed to find a way to permanently store the persistent string in app.config. The way I was working with it before meant that it was not 'saving'
Code updated:
static void Main(string[] args)
{
SaveString("dbuniquename", (System.Guid.NewGuid().ToString());
}
That goes in my main and
private static void SaveString(string key, string value)
{
Configuration config= ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.AppSettings.Settings[key].Value = value;
config.Save();
ConfigurationManager.RefreshSection("appSettings");
}
As the function to save.
Just listing in case anyone else had a troubles.