[eluser]Aken[/eluser]
Gotcha! I thought it was something along those lines but clarification never hurts.
With that said, I have a possible solution for you. Instead of changing the autoload, why don't you change the config items that call the use of the sessions DB?
The sessions library is autoloaded by default. The user goes through the install controller, and somewhere in that process after the DB has been created, you use the following:
Code:
$this->config->set_item('sess_use_database', TRUE);
You would still need to set the DB name inside the config file (or add another rule right below that one). Also unless you added some more checks for an existing DB, you'd pretty much force the install script all the time. Personally I'd do that anyway - less chances for the end user to mess something up. That way the tables are always created exactly how you want.
Hope that works for you.