Database pipeline