Add an options argument to query

The pull request adds a news argument to query, so you can specify options instead of the default `primary=true`. Options are formatted as an object, like this : `{option: value, option: value}`.
This new argument is optional, if not defined it will default to `{primary: true}`.