keep banging your head against a wall, eventually you get through!
Oh dear.
Simple when you think about it.
the database update is using the hidden field values from the bottom of the form, next to all of the buttons.
I noticed the fields I needed weren't there, so I added them, and hey presto, it works!