moved query to repository and added shuffle array of participants