random handler can filter by verified or not

Plus, I've changed the way to create the queries.