Add a third transfer mode that inserts new rows and updates existing rows based on primary key, supporting PostgreSQL, MySQL, SQLite, SQL Server, Oracle, and DuckDB with database-specific upsert syntax. Also fixes DuckDB primary key detection in transfer operations.