change database handling in UI