Revert "Removes debugging code."

This reverts commit c8c64b68ffff2e56b1e174b4cbde8c3f01eab8bf.
Revert "Pops up advanced query builder for Query<?> members and correctly persists predicates."

This reverts commit 4f4953e13799fd2f3456e8b9281641b5cddbedaf.