Add database index on action field