something like:
```python
is_standby = cursor.fetchone()[0] == 'on'
```