fix update job sql