fetching data from databases and displaying