Add schedule structure and link to database