fixed getAll.php to return correct entries