Added stats page related queries