Convert Json to xml and sql