Fix useless set of querries that would take very long if lots of users in a team, for statistics