Cleans things a bit, adds named parameters to raw AR queries.
Merge pull request #2 from vestimir/feature/small-refactor

Cleans things a bit, adds named parameters to raw AR queries.