Updated ConfigDatabase to regenerate config file on add and update.