fix password generation errors
mysql tweaks