Fix workers and schedules not getting assigned an id