fixed sql update
Merge branch 'master' of github.com:happapp/server