This could just be;

```py
users.update(u[0] for u in cursor.fetchall())
```