Calculate curriculum progress based on frequencies from an aggregate query. This should considerably speed things up.