Return activerecord relation instead of hash

- It's the right way to do things
- We can then use to_json with fancy options