properly displays question data in the database