Hi @Anonymous_1315 ,
Apart from the update method, did the code you provided run successfully?
I found a lot of small errors in your code, like the screenshot below, probably copied and pasted by mistake.
Which line of code does it show reporting the error(Row not found or changed)? Can you post screenshots?