Migration: native calls to get ids of group members and specailtyuserrole, fix for emailverification native query