adds setup for sending automated emails and clears db