merge dao class to model.