Saving emails only in lower case

- Changed how emails are saved in the database, so that every email
would be saved in lower case.
- Changed how text properties are checked against the database, so that
lower case is used instead of upper case.