added date to the data inserted
changed the view to the mad_traffic_stats, if you do not do in this way the view don't refresh