Wouldn't `m.Course(**course).save()` have to go at the end? Otherwise it will always be an update rather than an add