'Write the new thing to db and return its id.'

def write_new_thing_to_db(self):

    assert (not self._created)
    _id = tdb.make_thing(type_id=self.__class__._type_id, ups=self._ups, downs=self._downs, date=self._date, deleted=self._deleted, spam=self._spam)
    return _id
