Creating the email database