all 4 queries done, gotta index these babies and write the document