[DBAgent] Use DBAgent::transaction().