def METHOD_NAME(self, details):
    if self.current_id is None:
        self.add(details)
    else:
        self._db.cursor().execute('''
            UPDATE contacts SET name=:name, phone=:phone, address=:address,
            email=:email, notes=:notes WHERE id=:id''',
                                  details)
        self._db.commit()