SECOND AMENDMENT TO CONSOLIDATED, AMENDED AND RESTATED PROMISSORY NOTE