Allow db host to be undefined.