new database and value calculations in service