correct db query for pitches