Query a mysql database with a function.
highlights sql syntax, and use template files to generate code