function add_query()
 {
     $studyId = filter_input(INPUT_POST, 'studyId');
     $title = filter_input(INPUT_POST, 'title');
     $this->load->model('QueryModel');
     $query = new QueryModel();
     $query->setStudyId($studyId);
     $query->setTitle($title);
     $query->setText("");
     $query->add();
     $this->location('/report/' . $studyId . '/' . $query->getId());
 }