Clean up SQL scripts