removes ON DUPLICATE KEY from sql query