mods for readability
update sql_subset