Expose the database query model api for fetching the values of a field
for some query.