Changed makeorder, implemented server-side transactions for concurrency control instead of java-side transactions like I was using.