update activity table