Add indexes to the database table

I am using automailer on a very large site. The sheer amount of items in the automailer table made it very slow just to query out the new items to send.

Adding appropriate indexes on the table should help with this problem.