Put data fetching into its own seperate file