Add a validation query to the mysql database connection pool.