Add index on delayed_jobs (run_at, failed_at, priority)

When lots of failed jobs occur, this index gives huge performance benefit on high loads with big
delayed_jobs table.