added mail status saving in DB