SECOND AMENDMENT TO LINE OF CREDIT AND TERM LOAN AGREEMENT