First part of controller and DAO for Task