[DBAgentSQLite3] Fix the problem that doesn't keep the auto incremented value.

When the record with a unique key is upserted and it's duplicated,
we want to keep the value in the primary key's column. However,
the previous implementation with AUTO_INCREMENT_VALUE doesn't do so.