Fix query included in database name
Merge pull request #113 from kapetan/upstream

Fix query included in database name