More mysql tweaks