Added more logging to Sql.php, started on editing news.