optimize data access

Don't load all Jobs ever created every 10 minutes. That doesn't scale.
Let the DB do the filtering. It's very good at that :-)