Adding sql based social feature.