<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dict(self):
 """Dict representation of the database as credentials plus tables dict representation."""

        db_dict = self.credentials
        db_dict.update(self.tables.to_dict())
        return db_dict