Fixed MySQL once and for all (I hope)