Change job query to get next JobOrderID