Squashing some minor formatting bugs and redesigning the MySQL paradigm a bit (+ the code to go with that)