make `wp db query` optionally read from STDIN
test that database is selected