Update the GUI program for database and no database