[DBAgent] Add a new virtual method: lastUpsertDidUpdate().

This patch adds a method that tells whether the previous upsert resulted in update or insert.
Don't we have to consider the "numAffectedRows == 0" case at HATOHOL_ASSERT()?