Corrected some env var calls and working blog example with mysql.