SECOND AMENDED AND RESTATED STOCKHOLDER AGREEMENT