adding postgres sql to bulk update lineage