Quality of life and sense of community. A study on health and place of residence