PostgreSQL to MySQL conversion script