SAGENT TECHNOLOGY, INC. NOTE AND WARRANT PURCHASE AGREEMENT