Minor modification on Bond class to avoid NaN in duration & added DB
extra functions