handle new activerecord postgres result set class for rails v3 and higher

- I tested this on rails 4 with latest postgres and all works fine!
- also fixed a minor error message typo