homepage works but too many queries