I would like to build a custom dictionary using abstract base classes similar to one built by Raymond Hettinger like over here. The difference being I plan to use PostgreSQL