update grades and group tables when importing data