CONN-1131 Updated main sql script