Better getNextExam()

Fixes #39
Fixes #40

getNextExam filters out completed exams and exams for other sections
all in the query. Instead of having to loop through the results and
having to do many more queries to see if it is completed.