Some cleanup. Create indexes in background.