Made the delete function smart enough to delete all individual runs for a given ID
Sped up the runsbyresult query by limiting data returned