Except it appears to me that the problem with what’s not getting changed in the database is caused by what’s not being rendered in the template.
A form being submitted only submits the data within the form tag.
You are rendering:
There’s nothing in there to submit as post data, other than the csrf_token.