Moved everything around, fixed a huge bug in the MySQL code.