AMENDMENT NO. 2 TO FIRST AMENDED AND RESTATED CREDIT AND SECURITY AGREEMENT