Added dia saving to mysql database
and gritter plugin and jshelpers.js