[MAL-1] Added sql to retrieve match statistics.