add top-level versioning API to db_interfaces and berkeley_db