Added SQL optimizations to category index page, drastically reducing DB lookup time.