Fix the timetable limiting

Made a mistake with the timetable code. Didn't realise that I had to tell SQLAlchamey to do a join.

Fix that now tho :D