db and ui