minor fix with user querydict length
minor change to avoid 500's when finding friends
typo