Reformat spaces
Nasty optimisation bodge

GetScheduledJobDetails to get scheduled jobs for a group and the next
run time in one SQL statement