clean up error handling and parameter status handling with private helper methods in PostgresConnection