fix db issues
Merge pull request #25 from richsalvucci/master

fix db issues
mege