Fix PostgreSQL problems.

Fixes and improvements:
- Update PostgreSQL JDBC driver to latest version.
- Add combo box in SQL pane to set SQL syntax to be generated (MySQL or PostgreSQL).
- Fix generated SQL to be PostgreSQL compatible (if syntax is set to PostgreSQL).