clean up domain table query and csv, make sure sectors and subsectors return list