select random downloads with a PostgreSQL function that comes up with a random download ID and then checks if that download ID actually exists and is expected to be stored in GridFS (if not, the process is repeated while such download is found); works faster because of the size and nature of the database