Fixed up the methods:
addMatch(),
addRace().
You now get back an int wich is the id of the race or the match you just added.