db migrate+num items on index