moved buggy db code out of the way
Merge branch 'hotfix/app-crash-1'