Modified getAll in AbstractDAO