correct hostname and dbpath