it's good that you got it sorted... but...

you could have made a server backup and done that in the first place...

and now, since you have not found out what it was causing the problem you have missed an oportunity to learn... n'est-ce pas ?