Finished database logic and grabbing emails for missionaries