STOCK PURCHASE AGREEMENT AMONG SYNQUEST, INC. AND THE PARTIES LISTED ON THE SIGNATURE PAGE HERETO UNDER THE CAPTION “PURCHASERS” AUGUST 30, 2002