implemented finishAndStoreQuizInDatabase and score quiz