add better mongodb indexes for the content_entries collection + use an optimized version of the max aggregation method