Improve mysql authentication