add column previous_task_id
define Task.avatar_url
define Task#task_state
method extraction
update client-side