Modified query statement from an INSERT INTO statement to an UPDATE statement