got the sql active user ranking working