[ADMCON-5: Improve exting queries]
[#ADMCON-5: Adding Integration test with profileSQL active but ignored]
Fixing test