This worked fine in a testing environment but when I did it on the server which already encountered the error the entire site crashed and has an unexpected database error. I have had to restore the site from yesterday's backup. Please give me a safer way to get this off my website.