rest.php now returns id of students and companies