Updated database storage and functionality
Merge branch 'master' of https://github.com/makilian/Mist