Fix handling of syntax error in queries

The execute_prepared function in sqerl_pgsql_client was not returning
the State record in the final fun head catching unrecognized errors such
as bad queries (either bad syntax or no such table).

In addition, the parse_error function was not flexible enough to allow
these messages through.

ping @christophermaier @jamesc