refactor xml parser util ,add db util, and add main window