creating new db class to manage blockchain forks