Some changes.
Add loading the db parameters directly from protected/config/db.php.