addd index to db