Base database class and board class