AMENDED AND RESTATED SECURED SERIES B PREFERRED STOCK CONVERTIBLE PROMISSORY NOTE