initial work on db interface for blockchain