Logging each document to console, with for loop iterating through query callback result