fix links to 'query document' in internal/crud

ready for merge