AMENDED AND RESTATED SECURED PROMISSORY NOTE AND AGREEMENT ("Note and Agreement")