Miner improvements.

Handle version differently.  Allow version to be calculated for database
input and used to detect changes but not input from database.  Fixed
abstract connection to allow post-configuration changes.