Petri Asikainen rewrote insert_record to use ADOdb functions. It might
be very slightly slower but it gets rid of all the horrible not-quite-working
PostgreSQL workarounds the old one contained.
It worked for him on PostgreSQL 7.4 and for me on MySQL 3.23 and 4.0.15,
so I'm checking it in.
Please test it thoroughly on your test systems.
Since it writes data it has the potential to stuff things up, so be
careful on production systems for a few days.