lab2 terceira questao, Persist the tasks in database