debugged multithread mysql server connection error