Reverting the do-while() loops, as they were crashing if there was exactly 1 return.

Fixed the dbGetWorkoutsByDate() so that it actually works.