index get results from datebase