Convert scripts use pg config option