Updates
Debug messages
Changed the way db is upgraded
Merge branch 'master' into gh-pages