CORE-4272: three changes:

- changed the outer joins to inner joins in the ilsLADataObjects query
- added a namespace for executing specific queries directly
- moved the code to actually define specific queries to the new namespace