def save_metadata(self, profile="default"):
        """Save the database credentials, plus the database properties to your db.py profile."""
        if len(self.tables) > 0:
            f = profile_path(DBPY_PROFILE_ID, profile)
            dump_to_json(f, self.to_dict())
Save the database credentials, plus the database properties to your db.py profile.