Role of a continuous MHD dynamo in the formation of 3D equilibria in fusion plasmas