Fix sql quote issue.