Updates on SQL scripts