Sections are checked to make sure their course exists before being added to database
hopefully fixing issue with heroku postgres database