updated database models and wrote basic template logic to show info from database