Disable and enable Buttons based on a database entry

I tried without success. The field name is correct now