No cycles

We don't want cycles in the database, this makes sure there aren't any.  PUT and POST need to enforce this.