Contains functions for testing and checking the consistancy of the board database.