Query may be an empty string, too.

We should really fix that in the init function
Tests for list delete
Use pthread ID for more connection debugging.  Helps debug #624