Optimize db indexes

We have had some issues when filtering on mailer_actions that resulted
in time outs. It seemed that an single index on mailer_action
combined with the happend_at, id index wasn't good enought.

This might not be optimal, but it's better than before.