fixing rake trends task so it can save all trends over a 24 hours cycle and clearing older ones