[eluser]Dam1an[/eluser]
Could you not do something like
Config:
Code:
$config['active_group'] = "default";
Database:
Code:
$active_record = $this->config->item('active_group');
And then you can just get the value via the config class
(Note: This has not been tested, but should work non the less)