Drop gtk_dialog_run(). So, update db and library view while show the dialog.