Refactor DBConn, DataXML classes.