Update CDatabase.php