ENH : added struct classes to make

Adds machinery for generating namedtuple subclasses to work with
the data structures from/for the database.