Fixed a myriad of SQL query issues related to MySQL formatting. Added commits, fixed bug in tournament bracket generation.