finished querying db for xml data