changed task name to taskQuery
added callback to save
changed doc save to async update