Fixed and optimized method to get all students from lab.