The solution presented here, takes the approach to separate the form input from the database update.
In the example we use session variables instead of table updates. When you implement the example as a solution, NO sessions are required, unless for other purposes.
Try the example.