Get the db host from the gerrit config too

Change-Id: I39048f5c81d934de1e07c5a4ebad1e504b8df7e2