Connected UI to DB