refactored quiz to be more streamlined, now set up for user database