Added MaxWait to try and solve database connection errors
added validationQuery="SELECT 1" to Resource def for MySQL Database to see if will solve database connection problems