Adds functionality to fetch data from API, query still hardcoded