<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_update(self, *args, **kwargs):
 """A records is added, then on subsequent calls, updated"""


        if not self._ai_rec_id:
            self._ai_rec_id = self.add(*args, **kwargs)
        else:
            au_save = self._ai_rec_id
            self.update(*args, **kwargs)
            self._ai_rec_id = au_save

        return self._ai_rec_id