Format InvalidQuery nicer

Closes #56.
Set type to text for string literals in SQL

"SELECT 'abc'" => "SELECT 'abc'::text".
Postgres sees string literals as "unknown" type unless type is explicitly
set. The driver returns `{ :unknown, "abc" }` for the above code before
this fix.
Add integration tests for SQL escaping

Closes #22.