Added ON DUPLIATE KEY UPDATE clause for MySQL db engines.

#36