Adds indexes to tables to improve perf.