Update pages finder method to raise as expected by crudify

and use rails 4 compatible quering methods