partially fixed mapping issues between employees and departments table