compares id of last document and only returns new comments in json