Adjusted catalog queries for PostgreSQL 9.0

Minor change on SchemaParser. Added method storePgSQLVersion()

Minor change on ResultSet. Empty queries don't result in exceptions
anymore, only a empty resultset is created instead.