bottom_db: expose self as an unique_ptr