Using transactions and raw SQL for major speed improvements to bracket building.