refactor: make separate query method for array of urls
refactor document query