now code can handle all dao and manage all dao.