Do you want the code to load the data from the database and the update a value and finally save?
How do you want to use that code?
No, i want to disable widget with a cronjob. At a certain time he has to set a widget as disabled of enabled. I have a module ( with an image ( store open )) with a widget i placed this in the sidebar ) but when i disable "open module" image still show as a red cros in only in Explorer in Chome it is ok.
So i want to try this to disable / enable the widget. It only has to give an updat to the database to enable of disable.