add indexes to tables