Could we detect the mysql version from the environment and use that in the template?