Checkbox status working in database