Update Task class, link to database