Changed upgrade sql to version
nginx is now called via "service nginx function"
Bug fixes