add a thread on startup that sends email messages periodically. This means I don't need to run a cron job and should still have access within the thread to access that database