fixes bug
Merge pull request #3 from aldarondo/db

fixes bug