Revert "Restrict CTE recursive query to domain specific data"
Revert "Restrict CTE recursive query to domain specific data"

This reverts commit 493fb6c7dc8cc68534e4dbbc943b73991372ba51.

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq