Refactored TskDbDiff (DatabaseDiff) to eliminate repeated code and correctly close database connections