Make `wp db query` accept a file or STDIN

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