Made query something in a rescue in controller