add an opton to update table values while insert using ON DUPLICATE KEY from mysql