Regarding the original vbscript problem: don't throw it away. Fix each thing you come across. Add a foreign key constraint when you update a table. Add a NOT NULL where it makes sense while you're doing something else. Remove the shoddy code one bit at a time. Add proper quote escaping. Before you know it, the system starts looking (and running) better. Meanwhile, you never once moved backwards in features or availability.