Added index to tables