Update Plugin's config.php
In this situation you don't want to use a config file and instead you want to use plugin settings. The settings have a UI and save to the db, which does exactly what you want. The config files are meant to only be updated manually updating them.

http://buildwithcraft.com/docs/plugins/plugin-settings