Change sql to YII dbo instead of mysql directly.

Remove hardcode directory name into url in blackboot/views/layouts/main.php.