added option to disable ON DUPLICATE KEY UPDATE