fixed mySQL stuff