Using the following code, you can save a store config value. The first parameter is the path from the core_config_data table.

Mage::getModel('core/config')->saveConfig('my/path/whatever', $value);
Saving store config data programmatically
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.