save pipelines to db