Might be more explicit to not tack `.fetchone()[0]` on the end, since if either part of that breaks it's game over. Maybe that's just a matter of taste though.