You're right. The church is not a democracy but it is a Mystical Body which functions best when the head is connected to the body.  The Pope is not infallible unless he is connected to the wisdom and truth of the total Body of Christ.