fixed deploy hook for creating and filling db
Merge pull request #673 from davherrmann/issue#639

fixed deploy hook for creating and filling db