use xml to replace database