get data for usre raiting and contects from db