NBT-171 DAO with entities