Extend --field option to other commands

- make the --field option available with new, modify and query commands
- refactor reused code relating to implementation of --field option