Add a MongoDB index for time based queries