implement function that query employees by department name and fix the bug for favorite,  not all local data