dao and model structure