Fix bug of db script
Merge pull request #14 from AKdozum/master

Fix bug of db script