add front end to web app and api to get data from db