SECOND AMENDMENT TO AMENDED AND RESTATED ACCOUNT PURCHASE AGREEMENT