making SQL-XML builder