CLC-1220 Script to automate db downgrade procedure