tweaking queries to improve response time, switching up json to improve usability