Creates database and updates GUI.