Add accessors.

* Transaction#env
* Database#env
* Cursor#database