s3:registry: extract the reg_backend_db prototypes into their own header.