all index hooked into db logic