SECOND AMENDMENT TO CONVERTIBLE NOTE PURCHASE AGREEMENT