Sense of community can reverse decline in church attendance