Modified the proposed schema script so that it can be run repeatedly on the same DB with no ill effects.