Updated sql for getting friend requests