preserve entities in custom sql filter settings