added timeslots, fixed encodind in database