Added support for high scores to the database. Fixed some bugs.