Merge pull request #6 from baasbox/master

update from origin repo
Added a check in Global.java to ensure DB is not corrupted at startup
Merge pull request #77 from giastfader/master

 	Added a check in Global.java to ensure DB is not corrupted at startup