New db structure, changed file perms, fixed bugs relating to a clean db.
Merge branch 'master' of https://github.com/rasmushaglund/tornado