second attempt debugging multithread mysql server connection error