connect to DB in ui