Included team_id in task update sql to avoid risk of misuse.