wadindex: close #88: add debug options to script

- Added more log output
- Changed log level for some existing log messages
- Added --database option to getops array