Move to `db.py`, snake_case and use consistent variable naming: `cursor`