update sql to add error message for transport record.
Update the function of update err to add ErrorMessage