Database resultset helper functions

Database resultset helper functions
Merge pull request #22 from mvniekerk/master

Database resultset helper functions