Fixed memory leaks in mysql connections