added database update to store active todo_group