Here is the changed SQL stuff.