Fixes and improvements in PG protocol support. New method getCommandType() was added to CommandInterface to return the type of current SQL statement.