Improving MySQL script
PostgreSQL files