Use arel for monitor_delayed_jobs.rb

Update monitor_delayed_jobs.rb to use AReL queries