Added index to database