adds rows_affected output to console logging