Pass host as parameter to constructor

Pass the database host name (e.g. localhost) as a parameter to the
constructor, instead of hardcoding as a private variable.
Initial example

Creates a new MailManager instance for testing