added getting timetables from database