keeping sql queries in xml