SQL messages also sent to the IRC bot. Removed some debug code.