Optimizes the 'GetAggregatesForUser' method in SqlEventRepository.cs to only involve one trip to the database (instead of 'foreach aggregate'.