How to run a MgO wavefunction calculation