made changes to db and updated gui responsability