store activity info into task table