refactor community users relationship