Added task type methods to TaskDao.