<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_object(self, object):
 """Add object to db session. Only for session-centric object-database mappers."""

        if object.id is None:
            object.get_id()
        self.db.engine.save(object)