update datatabe after save of new contract #567