Initial revamp of the DBCursor. Added/created related classes for query
offset, limit and sorting of results.