Resolved problem with hanging tests.
Refactored BDB to use NewDB instead of CreateDB.
Begin adding Environment support.
Added support for opening and closing environment.