Task CRUD functionality. A bit of cleanup