Calculators views refactoring and db history fix.