Changed database update (only on change), don't send mail in DEBUG