Some fixes

Fixes some typos and adds a missing logger in `utils.py`.
Yes, queries_to_send is better (at least it won't crash).

I want to clean up the code a bit when I have some free time. I'll let you know when I do.