def column_names(cls, prefix=None):
    """
        return column names for DB interactions
        """
    ret = ''
    for attr in cls.attributes:
        if prefix is not None:
            ret += '{0}.'.format(prefix)
        ret += '{0},'.format(attr)
    ret = ret[:-1]
    return ret
