Implement specifying that some values should be included with the query on the
dbmodels query api.
Implement a view query controller making it easy to extract data
from the index.