Reduce database usage

Sample:

    $command = Yii::app()->db->cache(60)->createCommand("SELECT * FROM some_table LIMIT 10");

This opens database connection even if ```Yii::app()->db->autoConnect=false``` and query results are already in cache.

I moved CDbConnection::setActive(true) from CDbConnection::createCommand() to CDbCommand::getConnection().