MT#7471 Fix contract schema and add down script