Added index to where and select.