'Returns a map of column names to cleaned values'

def _as_dict(self):

    values = (self._dynamic_columns or {})
    for (name, col) in self._columns.items():
        values[name] = col.to_database(getattr(self, name, None))
    return values
