Query database
Merge pull request #1 from hkuniyoshi/master

pull