Made some query optimizations and implemented a small part of something to email blast results to the user.