further changes to courts_table to improve efficiency. Moved courts over to test unit.