fix database entries for mailer