implement db new mail updating