update query function and ignore pickle files
Merge branch 'master' of github.com:nlpweb/glance-modules