Query for main page is done