modified SQL scripts