I'd suggest this:

```python
group = Group(json['name'], json['description'])
group.add_owner(self.user)  # Owners are separate from members, for now.
db.session.add(group)
try:
  db.session.commit()
except db.IntegrityError:
  return {request denied}

return {ok, group.id}
```