serialize the parsed XML into db