Added BaseCodeTable class and updated existing entities