Update torndb.py

hack and fix for:

    conn.query("SELECT * FROM users WHERE id IN %s", tuple([1]))

If you don't like my hack, never mind, just reject it. I just wanna make torndb a bit more perfect :)