added SQL syntax for handling duplicate updates