Updated controller and views to use database data instead of API data