update db and change the ui