Merge pull request #20 from mk270/master

fix up backend / remove vast amounts of duplicated code
Fix indent, fix PackageGroup bug
Create db before trying to download data