Get the timetable version from the database