Fixed error in query.js where expr was not passed to queryDatabase, causing a ReferenceError.
Merge pull request #468 from tantalor/master

Fixed error in query.js where expr was not passed to queryDatabase.