fixed db migration problem
Merge pull request #47 from JoshFB/migrationFix

fixed db migration problem