edit query user, department and division