Make `wp db query` accept a file or STDIN

Example:

```
wp db query < debug.sql
```

From https://github.com/andreascreten/wp-cli/issues/44#issuecomment-3341633