mysql connection timeout workaround