Fixed sql error and jobId split