Update DB.php to check if the current SAPI is cli, echo accordingly, strict checking on dbSystem()