Documented and improved new DB API.