Fixed a bug in EmployeesController and updated queries in others