works for idbs, fails for edbs