Refactored emails and databases to be encapsulated in a routes folder.
Merge commit 'fb531ad77c2125aa17ef9a4b450b8cc21bf85ad0'