- finished redesign of mining-db