Connection to db can fail db port is not set.