Added index for external database