fixed db bug
Merge pull request #110 from CalvinFernandez/hotfix

fixed db bug