implemented getDate by ID functions to questions and answers class