added the wiserep database dump script as a command-line function