added indices and cleaned up notification

I copied the migration changes to a separate migration in the wikirate branch