Added database hooks for Test, quiz, and stat objects.