Ensure database host always has a value

catch empty string as well