How do I keep new values when I refresh the page?

Hello dear friends,
I’m using tabs as a dynamic page, I created a text (which is linked to the database “Cars > initial launch”) and together a button, which by clicking on it, changes the text with other values (in case the text is 1 and by clicking the button the value of the text is replaced by 2) and when updating the page (F5) would need the new value, obtained by clicking the button continue, in that I thought it was just create an update after clicking the button, however I did the code and did not work, possible to help me…