Threaded approach to queries

I got those queries threaded and it feels soo goood <3

I'm gonna do something about those chats though, change them somehow so
I won't have to refresh this list every time something in roster changes
- it would be awesome. But I need to sleep now.