Added backend for timetable, fixed a minor bug with data updating