DB ver 3
deleted table Type
deleted unused classes, reformat code