Defined more fine tuned queries for delayed::jobs