AMENDMENT NO. 2 TO CREDIT AND SECURITY AGREEMENT