changed departments table from id-name to name-id, now using HashMap and name sorting. continued fixing names