SAGENT TECHNOLOGY, INC. NOTE PURCHASE AGREEMENT