connect db to UI