add index for inverse_id
fix bug: pending friends failed