If you update the dB entry … you are … updating the dB entry …
The idea behind the use of custom states is that you can use that data and further manipulate on-page … so that if you refresh the page you lose those states … in other words … you are just playing around with the values … until such time in which you decide to save it to the dB.
Hope the above makes sense.