Update retrieveAll function

Remove redefinition of $params array.