Intergration of database and UI