Set localhost as default database host for installation

Fixes #9435 

cc @jancborchardt @DeepDiver1975