Fix #512 CLI config reset functions no longer work

TODO:

- [x] Unit Tests
- [x] Fix #465 reset configuration and reset database do not work
- [x] Remove print(args) debug