coded env and open bdb