updated getResult and DB