improve syntax for on-duplicate-key, and rewrite to bindVars syntax