Allow dba users to always execute XQueries
Refactoring: putting code validation into separate object.