Improving NextJobHandler

Removing order_by clause and get only url and uuid columns