Fixed PostgreSQL data load SQL script