<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_config_database_info(self):
 """Get memory usage and space statistics on the config database."""


        max_size = self.config_database.data_size
        max_entries = self.config_database.max_entries()
        used_size = self.config_database.data_index
        used_entries = len(self.config_database.entries)
        invalid_size = sum(x.data_space() for x in self.config_database.entries if not x.valid)
        invalid_entries = sum(1 for x in self.config_database.entries if not x.valid)

        return [max_size, used_size, invalid_size, used_entries, invalid_entries, max_entries, 0]