Move RethinkDB method into a separate helper.

- Add filter to load category before action