Users' ids now fetched from statistics table