fix timetable database