Database support

Quiz questions are now loaded from a database based on the currently
selected case.