add from and to time to table
table now updates itself every 5 seconds