modify console.php and main.php to using mysql and gii