Making queries, emails, and other goodies work.

Moved config file.