SIXTH AMENDMENT TO AMENDED AND RESTATED CREDIT AGREEMENT, SECOND AMENDMENT TO AMENDED AND RESTATED SECURITY AGREEMENT AND FIRST AMENDMENT TO AMENDED AND RESTATED PLEDGE AGREEMENT