add dao and modify entity