sql script to do some rudimentary clean-up. Possible approach to general clean-up.