remove duplicate code, fix resultdb InterfaceError bug
disable webui debug by default