added index to time column for faster search