SECOND AMENDMENT to the AMENDED AND RESTATED LOAN AGREEMENT