compute_dtt reads from DB

should work, not yet tested