you didn't have to do all that, (and especially the backup restore is the last last last solution)
If you have a problem with an extension:
1st suggestion (depending on the version of your Mivb)
Command: gdm check users / gdm repair
2nd solution: activate the hidden menu: sdsdebug on / sdsdebug off
then solve the problem of your extension
3rd solution: there is a hidden command that allows you to override database error, which allows you to solve the backup problem for example.