Allow setting mysql hostname (defaults to localhost)

Also modified get() call to allow specifying a default value