Connected database to the UI