Fixed some bugs:
- was setting the field verification in the group distinct query inside the wrong block.
Working on the query classes to pass to the TIP.