update db dump scripts for new db schema
Merge pull request #2616 from groovecoder/fix-db-dump-script

Fix db dump script