How do I update an entry in a database without having to create a new entry and delete the old one?

As it has been for about 2 years, the update function on databases does not work as an update rather as a save, this makes a designed “comments section” on a webpage impractical. The database is edited to allow update from anyone.