Add ability to run arbitrary queries against a given database