quiz bugfixes + added database