Ability to fetch as objects of specified class. Fixes #25

Sadly, I have no idea how to test this without DB.