integrate merging of multiple dbs into pipeline rules