db: exclude disputed and pending matches from the count
db: exclude disputed and pending matches from the count

When counting matches to determine the tournament qualification,
do not count pending and disputed matches.

Signed-off-by: Ilija Hadzic <47a09d4a4430975766160361f65fc72633be50b6@gmail.com>

ihadzic/jim,ihadzic/jim,ihadzic/jim