updated the model for accessing of questions and choices from the database