Fixed email templates
Added database schedule