Suffering from mysql connection timeout