added GUI editing to database