Add schedule structure and links to database