Some SQL and PL/SQL scripts