sql queries, updated xsds