fixed small sql bugs in analytics.jsp and ran performance log to compare index performance. result: only want category index (on db with 1600 categories)