DEDB Demo final code