Dbagent upsert