'Write the props to db.'

def write_props_to_db(self, props, data_props, brand_new_thing):

    if data_props:
        tdb.set_thing_data(type_id=self.__class__._type_id, thing_id=self._id, brand_new_thing=brand_new_thing, **data_props)
    if (props and (not brand_new_thing)):
        tdb.set_thing_props(type_id=self.__class__._type_id, thing_id=self._id, **props)
