renamed ResultDb -> TaskDb