@mrclay, are you suggesting something like this:

```
$CONFIG->db['read'][0] = array(
    'dbuser' => 'fred',
    'dbpassword' => 'xxxxx',
    ...
);

$CONFIG->db['write'] = array(
    'dbuser' => 'fred',
    'dbpassword' => 'xxxxx',
    ...
);
```

and then when we init the database we pass $CONFIG into the database config class constructor.