minor query improvements

Statistics:
 - only ask for 'last run' if displayed
 - use limit for 'last run'

Prognosis:
 - don't count all races to know if there is at least one