added index to db