Logistic Regression for Massive Data with Rare Events