Fix MySQL, loads of bugs, didn't work at all.