I’ve discussed this here. Primarily, what Dany needed to do was to redistribute the wealth of the Master class so that they lacked the mean to attack her new state, and to ensure that the freedmen were economically independent and thus don’t fall into a new pseudo-slavery.