Converted database structure to dict and got all dependent functions working
Added, debugged email text file writing function
Added, debugged dict function for user choice
Added, debugged use of dict and format to make thank you template.
Removed debugging lines