added the email index to the database