Cleaned up old comments and implemented some new database methods to deal with scores and matches.
Added a skeleton for dumptable (still doesn't work very well), cleaned up some code.
Merge origin/master