[DBAgent] Use a more readable name.

upsert ->
upsertOnDuplicate

'upsert' itself is a name of operation in the same manner as 'insert'.
So this patch adds the condition to do it.