Updated database classes as they had some bugs in them.
Race tracking should be slightly more accurate.