Improve check for ending contest
Improve check for ending contest

Record start and end date for all contests in DB as they start, and
check each time is some contest has ended, or is to be closed.

danmichaelo/UKBot,danmichaelo/UKBot,danmichaelo/UKBot