Complete refit of db structure classes.