Added Calculation to database