database/pipeline_stage library