Fix problem with postgres and generated keys.

Make returning generated keys optional - the PostgreSQL JDBC
driver blindly appends "RETURNING *" to all statements
(violating the JDBC spec) which causes PreparedStatements
using SELECT to fail.