Removed unused functions, optimized AFAS queries, by default get the user/group count with tags