Berkely-style database abstraction class
