Changed how the main fragment is created. Also hacked in a fix for db tables not getting created
Merge pull request #22 from Naosyth/bw-improve-code

Proper main fragment creation, DB creation hack