Get the db host from the gerrit config too

Change-Id: I39048f5c81d934de1e07c5a4ebad1e504b8df7e2
diff --git a/jeepyb/cmd/update_blueprint.py b/jeepyb/cmd/update_blueprint.py
index 58cc390..2ce52f3 100644
--- a/jeepyb/cmd/update_blueprint.py
+++ b/jeepyb/cmd/update_blueprint.py
@@ -61,6 +61,7 @@
 
 GERRIT_CONFIG = get_broken_config(GERRIT_CONFIG)
 SECURE_CONFIG = get_broken_config(GERRIT_SECURE_CONFIG)
+DB_HOST = GERRIT_CONFIG.get("database", "hostname")
 DB_USER = GERRIT_CONFIG.get("database", "username")
 DB_PASS = SECURE_CONFIG.get("database", "password")
 DB_DB = GERRIT_CONFIG.get("database", "database")
@@ -144,7 +145,8 @@
         'Gerrit User Sync', uris.LPNET_SERVICE_ROOT, GERRIT_CACHE_DIR,
         credentials_file=GERRIT_CREDENTIALS, version='devel')
 
-    conn = MySQLdb.connect(user=DB_USER, passwd=DB_PASS, db=DB_DB)
+    conn = MySQLdb.connect(
+        host=DB_HOST, user=DB_USER, passwd=DB_PASS, db=DB_DB)
 
     find_specs(lpconn, conn, args)