retrieving questions from database works