'Returns relevant database configuration as a dictionary'

def config_as_dict(self):

    return {'name': self.name, 'admin': self.admin, 'admin_password': self.admin_password, 'user': self.user, 'password': self.password, 'host': self.host}
