Update query-generator.js

Added CREATE INDEX **IF NOT EXISTS**
Merge pull request #775 from coderbuzz/patch-1

Update query-generator.js